package com.yuanyefu.aop;

import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2017/9/17 0017.
 */
public class Main {

    public static void main(String[] args){
        ApplicationContext context= new  ClassPathXmlApplicationContext("/aop/config.xml");
        UserService userService = (UserService) context.getBean("userService");
        userService.create("yuanyefu","2112");
        userService.login("yuanyefu","2112");

    }
}
